package com.ty.user.starter.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * 菜单类型
 */
@Getter
public enum MenuEnum {
    MENU(0, "菜单"), BUTTON(1, "按钮");

    MenuEnum(int type, String name) {
        this.type = type;
        this.name = name;
    }

    private final String name;
    @EnumValue
    private final int type;
}
